/**
 * Copyright &copy; 2016 CNJSON All rights reserved.
 */
package com.hongsuan.pplive.modules.live.entity;

import org.hibernate.validator.constraints.Length;

import com.cnjson.db.persistence.DataEntity;

/**
 * @author cgli
 * @version 2016-04-18
 */
public class LiveRoom extends DataEntity<LiveRoom> {

	private static final long serialVersionUID = 1L;
	private String title; // 房间名称
	private Integer state; // 房间状态
	private Long onlineNumber; // 在线人数
	private String description; // 描述
	private String chatId;
	private String pictureUrl;
	private String userId;
	private transient String updateById;
	private Integer type;//分类,1:专场，2：自由播
	private String location;
	private String userName;
	private String avatar;
	private String specialId;
	private String channelId;
	
	private Float goodsDiscount;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public LiveRoom() {
		super();
	}

	public LiveRoom(String id) {
		super(id);
	}

	@Length(min = 0, max = 255, message = "房间名称长度必须介于 0 和 255 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String name) {
		this.title = name;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getOnlineNumber() {
		return onlineNumber;
	}

	public void setOnlineNumber(Long onlineUsersNumber) {
		this.onlineNumber = onlineUsersNumber;
	}

	@Length(min = 0, max = 500, message = "描述长度必须介于 0 和 500 之间")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getChatId() {
		return chatId;
	}

	public void setChatId(String chatId) {
		this.chatId = chatId;
	}

	public String getPictureUrl() {
		return pictureUrl;
	}

	public void setPictureUrl(String pictureUrl) {
		this.pictureUrl = pictureUrl;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUpdateById() {
		return updateById;
	}

	public void setUpdateById(String updateById) {
		this.updateById = updateById;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getSpecialId() {
		return specialId;
	}

	public void setSpecialId(String specialId) {
		this.specialId = specialId;
	}

	public String getChannelId() {
		return channelId;
	}

	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	public Float getGoodsDiscount() {
		return goodsDiscount;
	}

	public void setGoodsDiscount(Float goodsDiscount) {
		this.goodsDiscount = goodsDiscount;
	}

}